<h1>{$arrData.title_main}</h1>
{mainoptions title=$arrData.title }
<form action="" method="post">
	<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
		<tr>
			<th>Nazwa</th>
			<td><input type="text" name="name" value="{$arrData.vname}" /></td>
		</tr>
		<tr>
			<th>Overall</th>
			<td><input type="checkbox" name="overall" value="1" {if $arrData.overall == 1}checked="checked"{/if}/></td>
		</tr>
<!--		<tr>
			<th>Publikuj</th>
			<td><input type="checkbox" name="active" {if $arrData.active == 1}checked="checked"{/if}/></td>
		</tr>-->
	</table>
	<p align="right">
		{if $arrData.vid gt 0}
		<input type="submit" value="Anuluj" class="cancel" onclick="document.location.href='{url Category='VoteIndex' id=$arrData.id}'; return false;" />
		{/if}
		<input type="submit" value="Zapisz i przejdź do listy" />
	</p>
	<input type="hidden" name="go" value="1" />
	<input type="hidden" name="vid" value={$arrData.vid} />
</form>
{/mainoptions}